
objs := main.o
objs += hidapi.o
objs += utils.o
objs += adpcm.o

CC       = gcc
CFLAGS   = -Wall -g 


LIBS = `pkg-config libusb-1.0 --libs` -lpthread
INCLUDES ?= `pkg-config libusb-1.0 --cflags`

hidtest: $(objs)
	$(CC) $(CFLAGS) $^ $(INCLUDES) $(LIBS) -o $@

%.o: %.c
	$(CC) -c -o $@ $< $(INCLUDES) $(LIBS) 

clean:
	rm hidtest *.o 


